package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter@Getter
public class ShopOrder extends BaseDomain{
    /**
     * 用户
     */
    private User user;
    /**
     * 商品
     */
    private Product product;
    /**
     * 单价
     */
    private Integer unitPrice;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 总价格
     */
    private int totalPrice;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}